﻿namespace XBD.MyPolymPro
{
    /**
     * 多态
     * 
     */
    internal class Program
    {
        static void Main(string[] args)
        {
            var shapeList = new List<Shape>(); 

            shapeList.Add(new Circle());

            shapeList.Add(new Rectangle());

            shapeList.Add(new Oval());

            //Console.WriteLine(shapeList);

            var canvas = new Canvas();

            canvas.DrawShapes(shapeList);

            Console.Read();
            //Console.WriteLine("Hello, World!");
        }
    }
}
